import * as client from './client'
import urlConfig from './urlConfig'
///获取门店信息
/**
 * 请求参数
 */
export class GoodsRst {
    public productUID: string;  //门店uid
    public returnFields: string[];  //返回的字段列表
}
/**
 * 返回数据
 */
export class GoodsRpn {
    public productUID: string;
    public name: string;
    public supplyPrice: number;
    public productPictures: string;
    public description: string;
    public mobileDescription: string;
}


/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: GoodsRst) {
    const data = await client.exec(urlConfig.goods, rst);
    return JSON.parse(data) as client.RSM<GoodsRpn>;
}
